<!--
*@Author: QWP
*@Description: 资源下载
*@Date: 2024-05-21 20:59:07
-->
<template>
  <el-container class="f-h-100">
    <el-main class="f-padding-10">
      <u-table :columns="columns"
        :data="tabData"
        @link="tabLink">
      </u-table>
    </el-main>
  </el-container>
</template>
<script>
export default {
  data () {
    return {
      tabData: [
        { name: '谷歌浏览器', remark: '谷歌浏览器107绿色64位免安装版本', do: '点击下载', path: '/tool/GoogleChrome-107-64位-green.exe' },
        { name: '谷歌浏览器', remark: '谷歌浏览器107绿色32位免安装版本', do: '点击下载', path: '/tool/GoogleChrome-107-32位-green.exe' },
        { name: '良田高拍仪驱动', remark: '用于附件上传时连接高拍仪的驱动', do: '点击下载', path: '/tool/WebCamera.exe' },
      ],
      columns: [
        { type: 'index', label: '序号', width: 60, ailgn: 'center'},
        { label: '资源名称', key: 'name', width: 240, },
        { label: '资源描述', key: 'remark', minWidth: 200, },
        { label: '操作', width: 150, key: 'do', ctype: 'link', align: 'center'},
      ]
    }
  },
  mounted() {},
  methods: {
    tabLink(key, value, row) {
      if(row['path']) {
        location.href = window.origin + row['path']
        // location.href = 'http://localhost:8036' + row['path']
      }
    }
  }
}
</script>
<style lang='scss'>
</style>